package com.example.mybatisee.dao;

import com.example.mybatisee.model.ArticleInfo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ArticleInfoMapper {

    //返回所有文章
    public List<ArticleInfo> getAll();

    //插入文章
    public int addArticle(ArticleInfo articleInfo);

    //用id或名字查找文章
    public ArticleInfo selArticle(int id,String title);
}
